package com.snow.useviewdemo.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity

/**
 * Created by zhaoyingtao
 * Date: 2020/10/10
 * Describe:kotlin的baseActivity
 */
abstract class BaseKotlinActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(getLayoutId())
        setViewData(savedInstanceState)
    }

    protected abstract fun getLayoutId(): Int
    protected abstract fun setViewData(savedInstanceState: Bundle?)
}